class Animal(object):
    age = 10
    def __init__(self,name):
        self.name = name

    def eat(self):
        print(f"{self.name}正在吃东西")

    def __setattr__(self, name: str, value: Any) -> None:
        super().__setattr__(name, value)

    def __ne__(self, o: object) -> bool:
        return super().__ne__(o)

    def play(self):
        print(f"{self.name}正在玩耍")

    def sleep(self):
        print(f"{self.name}正在睡觉")

class Dog(Animal):
    def __init__(self,name,gender):
        super().__init__(name)
        self.gender = gender

    def eat(self):
        print(f"{self.name}正在吃狗粮")

    def bark(self):
        print(f"{self.name}会汪汪叫")

class Pig(Animal):
    def eat(self):
        print(f"{self.name}正在吃主粮")

    def buu(self):
        print(f"小猪会咘咘叫")

dog = Dog("腊肠狗","male")
dog.eat()